FROM registry-vpc.cn-shanghai.aliyuncs.com/mom2_base/centos_java:1.0

ENV TZ="Asia/Shanghai"
ENV LANG="C.UTF-8"

ADD ./start/target/start-2.0.1-SNAPSHOT.jar /home/app/start.jar

EXPOSE 8082
ENV JAVA_OPTS='-Xmx2688M -Xms2688M -Xmn960M -XX:MaxMetaspaceSize=256M -XX:MetaspaceSize=256M'

USER root
CMD ["sh","-c","java -jar -Dfile.encoding=utf-8  /home/app/start.jar"]

# docker build --pull --rm -f "Dockerfile" -t registry.cn-shanghai.aliyuncs.com/mom2_dev/demo:3831-20666 .

# docker run -d --name activity --network="host" --privileged=true -p 8082:8082 registry.cn-hangzhou.aliyuncs.com/ajwu/activity:1.0

